//
//  YZYNetworkManager.h
//  YZYSDKDemo
//
//  Created by 赵隆杰 on 2024/6/25.
//

#import <Foundation/Foundation.h>
@class YZYRoleInfo;

NS_ASSUME_NONNULL_BEGIN

typedef void (^NMSuccessBlock)(NSDictionary *resultDict);
typedef void (^NMFailureBlock)(NSString *error);

@interface YZYNetworkManager : NSObject

@property (nonatomic, copy) NSString *wx_appid;
@property (nonatomic, copy) NSString *wx_path;

/**
 获取SDK实例
 */
+ (instancetype)shareManager;

/*
 根据token获取用户信息
 */
- (void)requestGetUserByTokenSuccess:(NMSuccessBlock)success failure:(NMFailureBlock)failure;

/*
 一键登录
 */
- (void)requestQuickAuthLoginWithToken:(NSString *)token Success:(NMSuccessBlock)success failure:(NMFailureBlock)failure;

/*
 创建订单
 */
- (void)requestPlatformOrderInfoCreateOrderWithPayMoney:(NSString *)payMoney gameOrderSn:(NSString *)gameOrderSn remark:(NSString *)remark sonUserId:(NSString *)sonUserId userId:(NSString *)userId roleInfo:(YZYRoleInfo *)roleInfo completeBlock:(void(^)(id data))complete;

/*
 支付ID映射
 */
- (void)requestBillingPointMappingWithGoodID:(NSString *)goodID Success:(NMSuccessBlock)success failure:(NMFailureBlock)failure;

/*
 支付验证接口
 */
- (void)requestIosPayVerifyWithGoodID:(NSString *)goodID chooseEnv:(NSNumber *)chooseEnv orderNo:(NSString *)orderNo receipt:(NSString *)receipt completeBlock:(void(^)(id data))complete;

- (void)requestWechatGetInfoSuccess:(NMSuccessBlock)success failure:(NMFailureBlock)failure;

@end

NS_ASSUME_NONNULL_END
